package com.ziqikeji.thread;

/**
 * 设计一个程序，启动三个线程A,B,C,各个线程只打印特定的字母，各打印5次，例如A线程只打印‘A’。要求在控制台依次显示“ABCABC…”
 *
 * Created by Admin on 2018/8/8.
 */
public class WaitNotify {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        System.out.print("A");
        System.out.print("B");
        System.out.print("C");

        System.out.print("A");
        System.out.print("B");
        System.out.print("C");

        System.out.print("A");
        System.out.print("B");
        System.out.print("C");

        System.out.print("A");
        System.out.print("B");
        System.out.print("C");

        System.out.print("A");
        System.out.print("B");
        System.out.print("C");
        long end = System.currentTimeMillis();
        System.out.print("\n"+(end - start));
    }
}
